<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
{if !empty($this->data['adList']) && !empty($this->data['adList'][7])} 
<!--{loop $this->data['adList'][7] $mk $item}-->
<div class="adbox mb5"> {$item['code']} </div>
<!--{/loop}--> 
{/if}
<link href="{$this->data['baseurl']}css/tzm/list.css" rev="stylesheet" rel="stylesheet" type="text/css" media="screen">
<div id="container">
  <div class="direct"> <span id="direct_con" class="fl">您现在的位置：{if $this->data['con']['keyword']==''}<a href="{$this->data['baseurl']}">{$this->data['site']['site_name']}首页</a>&gt;{else}<a href="{url('Default', 'List',array('k'=>$this->data['con']['keyword']))}">全部</a>{/if}
    {if !empty($this->data['parentCategoryList'])} 
    <!--{loop $this->data['parentCategoryList'] $cat}--> 
    <a href="{url('Default', 'List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword']))}"><font class="show_key_word strong">{$cat['name']}</font></a> 
    <!--{/loop}--> 
    {/if}{if $this->data['con']['keyword']!=''}&gt;搜索到<font class="show_key_word strong">{$this->data['con']['keyword']}|共有{$this->data['totalNum']}</font>个相关商品{/if}</span> </div>
  <div class="clear"></div>
  <div class="content">
    <div class="searchcommodities" id="select_tools_module">
      <div class="catschoosetit">
        <h2>分类检索</h2>
      </div>
      <div class="catschoose"> {if $this->data['totalNum']>0}
        {if !empty($this->data['categoryList'])} 
        <!--小分类-->
        <ul class="list_sort" >
          <!--{loop $this->data['categoryList'] $item}-->
          <li><a href="{url('Default','List',array('c'=>$item['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby']))}" title="{$item['name']}">{$item['name']}</a></li>
          <!--{/loop}-->
        </ul>
        <div class="clear"></div>
        {/if}
        {/if}
        {if !empty($this->data['hotkeyList'])} 
        <!--搜索关键字-->
        <ul class="ranklist">
          <!--{loop $this->data['hotkeyList'] $key $item}--> 
          {if $key%6==0}
          <li> {/if} <a href="{url('Default','List',array('c'=>$this->data['con']['cid'],'k'=>$item['name'],'o'=>$this->data['con']['orderby']))}" {if $key%4==0}class="hl"{/if}>{$item['name']}</a> {if $key%6==5 || $key==count($this->data['hotkeyList'])-1} </li>
          {/if} 
          <!--{/loop}-->
        </ul>
        {/if} </div>
     <div class="clear"></div>
      {if !empty($this->data['adList']) && !empty($this->data['adList'][8])} 
        <!--{loop $this->data['adList'][8] $mk $item}-->
        <div class="adbox mt5"> {$item['code']} </div>
        <!--{/loop}-->
      {/if}
      <div class="clear"></div>
      <div class="catschoosetit">
        <h2>条件检索</h2>
      </div>
      <div class="catschoose">
        <ul>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>1))}" title="1-50元低价区">1-50元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>2))}" title="50-100元">50-100元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>3))}" title="100-200元">100-200元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>4))}" title="200-500元">200-500元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>5))}" title="500-1000元">500-1000元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>6))}" title="1000-2000元">1000-2000元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>7))}" title="2000-5000元">2000-5000元</a></li>
          <li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>8))}" title="5000元以上">5000元以上</a></li>
        </ul>
        <div class="clear"></div>
        <ul>
          <li{if $this->data['orderby']['select']==1} class="choose"{/if}><a href="{$this->data['orderby']['num']}">销量高到低</a>
          </li>
          <li{if $this->data['orderby']['select']==2} class="choose"{/if}><a href="{$this->data['orderby']['money']}">热门<strong><font color="red">HOT!</font></strong></a>
          </li>
          <li{if $this->data['orderby']['select']==3} class="choose"{/if}><a href="{$this->data['orderby']['credit']}">信用高到低</a>
          </li>
          <li{if $this->data['orderby']['select']==4} class="choose"{/if}><a href="{$this->data['orderby']['publish']}">最新上架</a>
          </li>
          <li{if $this->data['orderby']['select']==5} class="choose"{/if}><a href="{$this->data['orderby']['rate']}">商家推荐</a>
          </li>
          <li{if $this->data['orderby']['select']==6} class="choose"{/if}><a href="{$this->data['orderby']['priceasc']}">价格从低到高</a>
          </li>
          <li{if $this->data['orderby']['select']==7} class="choose"{/if}><a href="{$this->data['orderby']['pricedesc']}">价格从高到低</a>
          </li>
        </ul>
      </div>
    </div>
    <div class="clear"></div>
    {if $this->data['totalNum']>0}
    {if !empty($this->data['productList'])}
    <div class="mod_red">
      <div class="inner">
        <h3 class="hd"> <span id="header">全部 {if $this->data['con']['keyword']!=''}<font class="show_key_word strong">{$this->data['con']['keyword']}</font>{else}{$this->data['totalNum']}个{/if} 相关的商品</span> </h3>
        <div class="bd">
          <div class="module_list" id="module_table">
            <div class="detail">
              <ul style="visibility: visible;" class="list_goods">
                <!--{loop $this->data['productList'] $item}-->
                <li> <a class="goodslink" title="{strip_tags($item['title'])}" target="_blank" href="{url('Default', 'View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}"> <img alt="{strip_tags($item['title'])}" src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['pic_url']}_b.{$this->data['cf']->getFileExt($item['pic_url'])}"> </a>
                  <h4> <a title="{strip_tags($item['title'])}" href="{url('Default', 'View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" target="_blank">{strip_tags($item['title'])}</a> </h4>
                  <div class="price"> {if $this->data['return']['rate']>0 && round($item['commission']*$this->data['return']['rate']/100,2)>0}返现:<span class="g_yuan">¥</span>{round($item['commission']*$this->data['return']['rate']/100,2)}&nbsp;售出:{$item['commission_num']}件{else}近期售出:{$item['commission_num']}件{/if}</div>
                  <div class="price_vip">
                    <p>商城价:&nbsp;<strong class="hot g_yuan">¥{$item['price']}</strong>&nbsp;<span class="priceicon_vip"><a linktype="click-url" href="#" nid="{$item['num_iid']}" class="buy" target="_blank" onclick="return httpLog('/log-list-2-{$item['num_iid']}');" style="cursor: pointer;">马上去购买</a></span> </p>
                  </div>
                </li>
                <!--{/loop}-->
              </ul>
            </div>
          </div>
          <div class="clear"></div>
          <div class="page-sep">
            <div class="pagination"> {$this->data['pages']}</div>
          </div>
        </div>
      </div>
    </div>
    {/if}
    {else}
    <div class="module_std" id="no_result">
      <div class="module_con">
        <div class="check_title"> <span class="ico_jian"></span> <strong> 对不起，没有找到相关内容。 </strong> </div>
        <div class="check_detail">
          <p> 您可以尝试<strong>缩短</strong>或<strong>更改</strong>搜索关键字后重新搜索</p>
          <p>您也可以通过分类或品牌查找您喜欢的商品</p>
          <p> <a href="{url('Default','Sitemap')}" target="_blank">查看{$this->data['site']['site_name']}所有的商品分类和品牌&gt;&gt;</a> </p>
        </div>
      </div>
    </div>
    {if $this->data['config']['search8']['enable'] && $this->data['config']['search8']['keyword']!=''}<script language="javascript">setTimeout(function(){document.location="{url('Default','Search8',array('q'=>$this->data['cf']->getRandKeyword($this->data['config']['search8']['keyword'])))}";}, 2000);</script>{/if}
    {/if} 
    </div>
  <div class="sidebar"> {component frontend left}
    {if !empty($this->data['adList']) && !empty($this->data['adList'][6])} 
    <!--{loop $this->data['adList'][6] $mk $item}-->
    <div class="adbox mt10"> {$item['code']} </div>
    <!--{/loop}--> 
	 {/if} 
    </div>
</div>
<script language="javascript">
var defaultClickUrl	= "{$this->data['clickUrl']}";
replaceLink();
replaceImage();
</script>